package com.cucn.eduservice.client;

import com.cucn.commonutils.Result;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 熔断器实现类
 * 出错后会执行
 *
 * @author KouChaoJie
 * @since: 2021/10/8 20:25
 */
@Component
public class VodFileDegradeFeignClient implements VodClient {
    @Override
    public Result removeAlyVideo(String id) {
        return Result.error().message("删除视频出错了");
    }

    @Override
    public Result deleteBatch(List<String> videoIdList) {
        return Result.error().message("删除多个视频出错了");
    }
}
